package com.mm.mindmap.domain.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@Data
@TableName ("t_reply")
public class Reply {
    @TableId(value = "id", type = IdType.AUTO)
    //评论id
    private Long id;
    //所属文章id
    private Long mid;
    //发生用户id
    private Long pid;
    private Long rid;
    //评论正文
    private String content;
    //评论下的评论
    private String reply2;
    //点赞数
    @TableField(value = "`like`")
    private Integer like;
    //创建时间
    @TableField(value = "createTime")
    @JsonFormat( pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date createTime;
}
